import Cookies from 'js-cookie'

const Token = 'Token'
const HospitalId = 'HospitalId'
const Role = 'Role'
const Rolemenu = 'Rolemenu'
const UserId = 'UserId'
const Name = 'Name'
const Inscode = 'Inscode'

const Insname = 'Insname'
const Rname = 'Rname'
const Dept = 'Dept'
const Pri = 'Pri'
const Tel = 'tel'
const RoleName = 'roleName'

const Defaluthas = 'Defaluthas'
const Menutags = 'Menutags'

const Deptment = 'Deptment'
const ApiToken = 'ApiToken'
const SysRole = 'SysRole'
const Roles = 'Roles'
const ConsultationsId = 'ConsultationsId'

const Sn = 'Sn'
const Usn = 'Usn'
const Ctime = 'Ctime'
const Patientname = 'Patientname'
const Idcard = 'Idcard'
const Patientinfos = 'Patientinfos'
const Isgrid = 'Isgrid'

const Referralid = 'Referralid'

const RouterInfo = 'RouterInfo'

const Recordid = 'Recordid'
const Noticeid = 'Noticeid'

const Monitorinfo = 'Monitorinfo'

const Tsn = 'Tsn'
const Csn = 'Csn'
const Audittype = 'Audittype'


const Currenpage = 'Currenpage'
const Currensize = 'Currensize'
const Currentotal = 'Currentotal'
const Searchdata = 'Searchdata'

const Cacurrenpage = 'Cacurrenpage'
const Cacurrensize = 'Cacurrensize'
const Cacurrentotal = 'Cacurrentotal'
const Casearchdata = 'Casearchdata'



/*
** Searchdata存取删
*/
export function setCasearchdata(casearchdata) {
  return Cookies.set(Casearchdata, casearchdata)
}
export function getCasearchdata() {
  return Cookies.get(Casearchdata)
}
export function removeCasearchdata() {
  return Cookies.remove(Casearchdata)
}

/*
** Currentotal存取删
*/
export function setCacurrentotal(cacurrentotal) {
  return Cookies.set(Cacurrentotal, cacurrentotal)
}
export function getCacurrentotal() {
  return Cookies.get(Cacurrentotal)
}
export function removeCacurrentotal() {
  return Cookies.remove(Cacurrentotal)
}

/*
** currenpage存取删
*/
export function setCacurrenpage(cacurrenpage) {
  return Cookies.set(Cacurrenpage, cacurrenpage)
}
export function getCacurrenpage() {
  return Cookies.get(Cacurrenpage)
}
export function removeCacurrenpage() {
  return Cookies.remove(Cacurrenpage)
}

/*
** Currensize存取删
*/
export function setCacurrensize(cacurrensize) {
  return Cookies.set(Cacurrensize, cacurrensize)
}
export function getCacurrensize() {
  return Cookies.get(Cacurrensize)
}
export function removeCacurrensize() {
  return Cookies.remove(Cacurrensize)
}



/*
** Searchdata存取删
*/
export function setSearchdata(searchdata) {
  return Cookies.set(Searchdata, searchdata)
}
export function getSearchdata() {
  return Cookies.get(Searchdata)
}
export function removeSearchdata() {
  return Cookies.remove(Searchdata)
}

/*
** Currentotal存取删
*/
export function setCurrentotal(currentotal) {
  return Cookies.set(Currentotal, currentotal)
}
export function getCurrentotal() {
  return Cookies.get(Currentotal)
}
export function removeCurrentotal() {
  return Cookies.remove(Currentotal)
}

/*
** currenpage存取删
*/
export function setCurrenpage(currenpage) {
  return Cookies.set(Currenpage, currenpage)
}
export function getCurrenpage() {
  return Cookies.get(Currenpage)
}
export function removeCurrenpage() {
  return Cookies.remove(Currenpage)
}

/*
** Currensize存取删
*/
export function setCurrensize(currensize) {
  return Cookies.set(Currensize, currensize)
}
export function getCurrensize() {
  return Cookies.get(Currensize)
}
export function removeCurrensize() {
  return Cookies.remove(Currensize)
}

/*
** Audittype存取删
*/
export function setAudittype(audittype) {
  return Cookies.set(Audittype, audittype)
}
export function getAudittype() {
  return Cookies.get(Audittype)
}
export function removeAudittype() {
  return Cookies.remove(Audittype)
}

/*
** Tsn存取删
*/
export function setTsn(tsn) {
  return Cookies.set(Tsn, tsn)
}
export function getTsn() {
  return Cookies.get(Tsn)
}
export function removeTsn() {
  return Cookies.remove(Tsn)
}

/*
** Csn存取删
*/
export function setCsn(csn) {
  return Cookies.set(Csn, csn)
}
export function getCsn() {
  return Cookies.get(Csn)
}
export function removeCsn() {
  return Cookies.remove(Csn)
}

/*
** Monitorinfo存取删
*/
export function setMonitorinfo(monitorinfo) {
  return Cookies.set(Monitorinfo, monitorinfo)
}
export function getMonitorinfo() {
  return Cookies.get(Monitorinfo)
}
export function removeMonitorinfo() {
  return Cookies.remove(Monitorinfo)
}

/*
** Role存取删
*/
export function setRole(role) {
  return Cookies.set(Role, role)
}
export function getRole() {
  return Cookies.get(Role)
}
export function removeRole() {
  return Cookies.remove(Role)
}

/*
** Rolemenu存取删
*/
export function setRolemenu(rolemenu) {
  return Cookies.set(Rolemenu, rolemenu)
}
export function getRolemenu() {
  return Cookies.get(Rolemenu)
}
export function removeRolemenu() {
  return Cookies.remove(Rolemenu)
}


/*
** Defaluthas存取删
*/
export function setDefaluthas(defaluthas) {
  return Cookies.set(Defaluthas, defaluthas)
}
export function getDefaluthas() {
  return Cookies.get(Defaluthas)
}
export function removeDefaluthas() {
  return Cookies.remove(Defaluthas)
}

/*
** Menutags存取删
*/
export function setMenutags(menutags) {
  return Cookies.set(Menutags, menutags)
}
export function getMenutags() {
  return Cookies.get(Menutags)
}
export function removeMenutags() {
  return Cookies.remove(Menutags)
}

/*
** 路由菜单
*/
export function setRouterInfo(routerInfo) {
  return Cookies.set(RouterInfo, routerInfo)
}
export function getRouterInfo() {
  return Cookies.get(RouterInfo)
}
export function removeRouterInfo() {
  return Cookies.remove(RouterInfo)
}
/*
** 转诊id
*/
export function setReferralid(referralid) {
  return Cookies.set(Referralid, referralid)
}
export function getReferralid() {
  return Cookies.get(Referralid)
}
export function removeReferralid() {
  return Cookies.remove(Referralid)
}

/*
** 切换视图
*/
export function setIsgrid(isgrid) {
  return Cookies.set(Isgrid, isgrid)
}
export function getIsgrid() {
  return Cookies.get(Isgrid)
}
export function removeIsgrid() {
  return Cookies.remove(Isgrid)
}

/*
** 身份token 存取删
*/
export function setToken(token) {
  return Cookies.set(Token, token)
}
export function getToken() {
  return Cookies.get(Token)
}
export function removeToken() {
  return Cookies.remove(Token)
}

/*
** HospitalId 存取删
*/
export function setHospitalId(hospitalId) {
  return Cookies.set(HospitalId, hospitalId)
}
export function getHospitalId() {
  return Cookies.get(HospitalId)
}
export function removeHospitalId() {
  return Cookies.remove(HospitalId)
}

/*
** 姓名 存取删
*/
export function setName(name) {
  return Cookies.set(Name, name)
}
export function getName() {
  return Cookies.get(Name)
}
export function removeName() {
  return Cookies.remove(Name)
}

/*
** inscode 存取删
*/
export function setInscode(inscode) {
  return Cookies.set(Inscode, inscode)
}
export function getInscode() {
  return Cookies.get(Inscode)
}
export function removeInscode() {
  return Cookies.remove(Inscode)
}

/*
** insname 存取删
*/
export function setInsname(insname) {
  return Cookies.set(Insname, insname)
}
export function getInsname() {
  return Cookies.get(Insname)
}
export function removeInsname() {
  return Cookies.remove(Insname)
}

/*
** dept 存取删
*/
export function setDept(dept) {
  return Cookies.set(Dept, dept)
}
export function getDept() {
  return Cookies.get(Dept)
}
export function removeDept() {
  return Cookies.remove(Dept)
}

/*
** rname 存取删
*/
export function setRname(rname) {
  return Cookies.set(Rname, rname)
}
export function getRname() {
  return Cookies.get(Rname)
}
export function removeRname() {
  return Cookies.remove(Rname)
}
/*
** roleName 存取删
*/
export function setRoleName(roleName) {
  return Cookies.set(RoleName, roleName)
}
export function getRoleName() {
  return Cookies.get(RoleName)
}
export function removeRoleName() {
  return Cookies.remove(RoleName)
}

/*
** 科室 存取删
*/
export function setDeptment(deptment) {
  return Cookies.set(Deptment, deptment)
}
export function getDeptment() {
  return Cookies.get(Deptment)
}
export function removeDeptment() {
  return Cookies.remove(Deptment)
}

/*
**pri 存取删
*/
export function setPri(pri) {
  return Cookies.set(Pri, pri)
}
export function getPri() {
  return Cookies.get(Pri)
}
export function removePri() {
  return Cookies.remove(Pri)
}
/*
**tel 存取删
*/
export function setTel(tel) {
  return Cookies.set(Tel, tel)
}
export function getTel() {
  return Cookies.get(Tel)
}
export function removeTel() {
  return Cookies.remove(Tel)
}
/*
** userId 存取删
*/
export function setUserId(userId) {
  return Cookies.set(UserId, userId)
}
export function getUserId() {
  return Cookies.get(UserId)
}
export function removeUserId() {
  return Cookies.remove(UserId)
}

/*
** apitoken 存取删
*/
export function setApiToken(apitoken) {
  return Cookies.set(ApiToken, apitoken)
}
export function getApiToken() {
  return Cookies.get(ApiToken)
}
export function removeApiToken() {
  return Cookies.remove(ApiToken)
}

/*
** sysRole-云智医登录用户角色 存取删(若有多个角色取首位)
*/
export function setSysRole(sysRole) {
  return Cookies.set(SysRole, sysRole)
}
export function getSysRole() {
  return Cookies.get(SysRole)
}
export function removeSysRole() {
  return Cookies.remove(SysRole)
}

/*
** roles-云智医登录用户角色code码(数组)    存取删
*/
export function setRoles(rolesArr) {
  return Cookies.set(Roles, rolesArr)
}
export function getRoles() {
  return Cookies.get(Roles)
}
export function removeRoles() {
  return Cookies.remove(Roles)
}

/*
** ConsultationsId- 会诊标识 存取删
*/
export function setConsultationsId(consultationsId) {
  return Cookies.set(ConsultationsId, consultationsId)
}
export function getConsultationsId() {
  return Cookies.get(ConsultationsId)
}
export function removeConsultationsId() {
  return Cookies.remove(ConsultationsId)
}

/*
** sn 存取删
*/
export function setSn(sn) {
  return Cookies.set(Sn, sn)
}
export function getSn() {
  return Cookies.get(Sn)
}
export function removeSn() {
  return Cookies.remove(Sn)
}

/*
** usn 存取删
*/
export function setUsn(usn) {
  return Cookies.set(Usn, usn)
}
export function getUsn() {
  return Cookies.get(Usn)
}
export function removeUsn() {
  return Cookies.remove(Usn)
}
/*
** ctime 存取删
*/
export function setCtime(ctime) {
  return Cookies.set(Ctime, ctime)
}
export function getCtime() {
  return Cookies.get(Ctime)
}
export function removeCtime() {
  return Cookies.remove(Ctime)
}
/*
** patientname 存取删
*/
export function setPatientname(patientname) {
  return Cookies.set(Patientname, patientname)
}
export function getPatientname() {
  return Cookies.get(Patientname)
}
export function removePatientname() {
  return Cookies.remove(Patientname)
}

/*
** idcard 存取删
*/
export function setIdcard(idcard) {
  return Cookies.set(Idcard, idcard)
}
export function getIdcard() {
  return Cookies.get(Idcard)
}
export function removeIdcard() {
  return Cookies.remove(Idcard)
}

/*
** patientInfos 存取删
*/

export function setPatientinfos(patientinfos) {
  return Cookies.set(Patientinfos, patientinfos)
}
export function getPatientinfos() {
  return Cookies.get(Patientinfos)
}
export function removePatientinfos() {
  return Cookies.remove(Patientinfos)
}

/*
** recordid 存取删
*/

export function setRecordid(recordid) {
  return Cookies.set(Recordid, recordid)
}
export function getRecordid() {
  return Cookies.get(Recordid)
}
export function removeRecordid() {
  return Cookies.remove(Recordid)
}

/*
** noticeid 存取删
*/

export function setNoticeid(noticeid) {
  return Cookies.set(Noticeid, noticeid)
}
export function getNoticeid() {
  return Cookies.get(Noticeid)
}
export function removeNoticeid() {
  return Cookies.remove(Noticeid)
}
